#include "InLiteral.h"

InLiteral::InLiteral(Scope* in_pxParent, char in_cStartChar)
{
    m_pxParent = in_pxParent;
    m_eType = Scope::eScopeLiteral;

	m_sScopeEnder = "";
	m_sScopeEnder+=in_cStartChar; // Is this the best way to convert char to string?
	//TODO: Need to handle numbers?
}

InLiteral::~InLiteral(void)
{
}

Scope* InLiteral::parse(Token& inToken, bool &bIsEndOfScope)
{
    bIsEndOfScope=false;
	if(inToken.m_sValue == m_sScopeEnder)
    {
		bIsEndOfScope= true;
    }

    m_axBody.push_back(inToken);
    return NULL;
}
